package ys.ewp.po;

import javax.persistence.Entity;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import javax.persistence.Table;

/**
 * @description 公告PO
 */
@Entity
@Table(name="tb_notice")
public class Notice extends BasePo {
	
	//公告标题
	private String title;
	//公告内容
	private String content;
	//是否可评论，默认不可评论
	private boolean mayComment = false;
	//格式化的创建日期
	private String formatDateCreated;
	//所属栏目
	private Column column;
	//所属用户
	private Employee employee;
	
	public String getTitle() {
		return title;
	}
	public void setTitle(String title) {
		this.title = title;
	}
	@javax.persistence.Column(length=200000000)
	public String getContent() {
		return content;
	}
	public void setContent(String content) {
		this.content = content;
	}
	
	public boolean isMayComment() {
		return mayComment;
	}
	public void setMayComment(boolean mayComment) {
		this.mayComment = mayComment;
	}
	
	public String getFormatDateCreated() {
		return formatDateCreated;
	}
	public void setFormatDateCreated(String formatDateCreated) {
		this.formatDateCreated = formatDateCreated;
	}
	
	@ManyToOne
	@JoinColumn(name="column_id")
	public Column getColumn() {
		return column;
	}
	public void setColumn(Column column) {
		this.column = column;
	}
	
	@ManyToOne
	@JoinColumn(name="employee_id")
	public Employee getEmployee() {
		return employee;
	}
	public void setEmployee(Employee employee) {
		this.employee = employee;
	}
	
}
